import Vue from 'vue'
import App from './App'

// 导入http模块
import http from '@/utils/request'

// 导入showToast
import { showToast } from '@/utils/message'

// 导入store
import store from '@/store'

Vue.config.productionTip = false

Vue.prototype.$http = http
Vue.prototype.$msg = showToast
// this.$msg() /  this.$msg('登录失败')

// 定义全局过滤器
Vue.filter('formatNum', (value) => {
  return Number(value).toFixed(2)
})

// this.$http

App.mpType = 'app'

// this.$store
// 挂载
const app = new Vue({
  ...App,
  store,
})
app.$mount()
